<?php


namespace app\api\library\order\getOrderExpress;


use app\api\model\MallOrder;

class V
{
    public static function run($param)
    {
        $userId  = _checkEmptyParam($param[ 'userId' ], '用户ID不能为空');
        $orderId = _checkEmptyParam($param[ 'orderId' ], '订单ID不能为空');
        $order   = MallOrder::where([['id', '=', $orderId]])->field('id,express_company,express_no')->find()->toArray();
        if (empty($order)) {
            _outPut(204, [], '订单不存在');
        }
        _outPut(200, $order);
    }
}